/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 * /


function getXMLHttpRequest(){
                  var xhr = null;
                  if(window.XMLHttpRequest || window.ActiveXObject){
                        if(window.ActiveXObject){
                                       try{
                                                         xhr = new ActiveXObject("Msxml2.XMLHTTP");
                                                   } catch(e){
                                                                                xhr = new ActiveXObject("Microsoft.XMLHTTP");
                                                                 }
                                        }else{
                                                xhr = new XMLHttpRequest();
                                             }

                        }else{
                                alert("Votre navigateur ne supporte pas XMLHTTPRrequest");
                                                  return null;
                                 }
                         return xhr;
                  }

                function envoyerRequete(IDs){

                  requeteHttp = getXMLHttpRequest();
                  if(requeteHttp == null)
                       {
                          alert("impossible d'utiliser Ajax sur ce navigateur");
                       }
                       else
                       {

                          requeteHttp.open('POST','ajax/detail.php',true);
                              requeteHttp.onreadystatechange=function(){
                                      if(requeteHttp.readyState==4 && requeteHttp.status==200)
                                      {
                                              recevoirReponse(requeteHttp);
                                      }
                              };

                       requeteHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
                       requeteHttp.send('IDs='+escape(IDs));
                       }

                     }*/
                     function sujet()
                     {
                         
                         d=document.getElementsByTagName("input");
                         f=d.length();
                         g=d.getAttribute("id");
                         alert(f);
                         //return d;
                         //recevoirReponse(requeteHttp,s);
                         
                     }
                    /*function recevoirReponse(requeteHttp)
                    {	  
                            l=document.getElementById("sujStage").value;
                             alert(l);
                             document.getElementById(s).innerHTML="<textarea rows='15px' cols='70px' readonly >" + requeteHttp.responseText + "</textarea>";

                            return;
                    }*/
		
		